package com.zxg.web.interceptor;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

import java.lang.reflect.Method;

/**
 * @Author: zhaoxiaoguang
 * @Description:
 * @Date: created in 2018/5/18
 * @Modidied By:
 **/
public class LoginInterceptor implements MethodInterceptor {

    public Object invoke(MethodInvocation methodInvocation) throws Throwable {

        Method method = methodInvocation.getMethod();
        System.out.println(method.getName());
        Object[] onject = methodInvocation.getArguments();
        Object ret = methodInvocation.proceed();
        return ret;
    }
}
